<%-- 
    Document   : draw_chart
    Created on : May 30, 2012, 2:25:20 PM
    Author     : Stanley
--%>

<%@page import="javax.swing.text.StyledEditorKit.BoldAction"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="controller.ModuleStaticticsController, dto.*"%>
<% response.setContentType("text/html; charset=UTF-8");%>
<% request.setCharacterEncoding("utf-8");%>
<%
    String filename = "files/data.json";
    String jsonfile = getServletContext().getRealPath("/") + filename;
    
    HttpSession ss = request.getSession();
    String maTS = ss.getAttribute("maTS").toString();
    
    ModuleStaticticsController ctrl = new ModuleStaticticsController();

    String result = ctrl.getBaiThiToDrawChart(jsonfile, maTS);
    out.print(result);
%>